import request from '@/utils/request'

// 查询共享文件夹配置列表
export function listShareFolders(query) {
  return request({
    url: '/btrh/fileTransfer/ShareFolders/list',
    method: 'get',
    params: query
  })
}

// 查询共享文件夹配置详细
export function getShareFolders(id) {
  return request({
    url: '/btrh/fileTransfer/ShareFolders/' + id,
    method: 'get'
  })
}

// 新增共享文件夹配置
export function addShareFolders(data) {
  return request({
    url: '/btrh/fileTransfer/ShareFolders',
    method: 'post',
    data: data
  })
}

// 修改共享文件夹配置
export function updateShareFolders(data) {
  return request({
    url: '/btrh/fileTransfer/ShareFolders',
    method: 'put',
    data: data
  })
}

// 删除共享文件夹配置
export function delShareFolders(id) {
  return request({
    url: '/btrh/fileTransfer/ShareFolders/' + id,
    method: 'delete'
  })
}
